import {loadEnv} from "vite";

export const URL = 'http://39.108.126.114/api'
// export const URL = 'http://127.0.0.1:3000/api'

export const currentUser = {
    id: 0,
    userName: '',
    userAccount: '',
    userPassword: '',
    avatarUrl: '',
    gender: '',
    phone: '',
    email: '',
    userRole: 0,
    token: '',
}

export const registerUser: API.userRegisterRequest = {
    userAccount: '',
    userPassword: '',
    checkPassword: '',
}

export const entrustInfo: API.entrustRequest = {
    city: "",
    consigneeName: "",
    consigneePhone: "",
    county: "",
    detailAdd: "",
    id: 0,
    nation: "中国",
    postalCode: "",
    province: "",
    shipperName: "",
    shipperPhone: "",
}

export const entrustResponse: API.entrustResponse = {
    courierId: 0,
    city: "",
    consigneeName: "",
    consigneePhone: "",
    county: "",
    detailAdd: "",
    id: 0,
    nation: "",
    postalCode: "",
    province: "",
    shipperName: "",
    shipperPhone: "",
    entrustStatus:""
}

export let GlobalEntrust:API.entrustRequest = {
    city: "",
    consigneeName: "",
    consigneePhone: "",
    county: "",
    detailAdd: "",
    id: 0,
    nation: "",
    postalCode: "",
    province: "",
    shipperName: "",
    shipperPhone: ""

}

export const whitePath = ['/info', '/login', '/register']
